const router = require ("koa-router")();
const MembersModel = require("../../models/Members");
router.get("/m1/add",async ctx=>{
    var {id} = ctx.query;
    if(id){
        var data = await MembersModel.find({_id:id})
        await ctx.render("add",{data})
    }else{
        ctx.render("add");
    }
})
module.exports = router;